1#
2#  rb_main.rb
3#  �PROJECTNAME�
4#
5#  Created by �FULLUSERNAME� on �DATE�.
6#  Copyright (c) �YEAR� �ORGANIZATIONNAME�. All rights reserved.
7#
8
9require 'osx/cocoa'
10
11def rb_main_init
12  path = OSX::NSBundle.mainBundle.resourcePath.fileSystemRepresentation
13  rbfiles = Dir.entries(path).select {|x| /\.rb\z/ =~ x}
14  rbfiles -= [ File.basename(__FILE__) ]
15  rbfiles.each do |path|
16    require( File.basename(path) )
17  end
18end
19
20if $0 == __FILE__ then
21  rb_main_init
22  OSX.NSApplicationMain(0, nil)
23end
24